package cn.tao.org.service.impl;


import cn.tao.base.service.impl.BaseServiceImpl;
import cn.tao.org.domain.Systemdictionarytype;
import cn.tao.org.mapper.SystemdictionarytypeMapper;
import cn.tao.org.service.ISystemdictionarytypeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

@Service
public class SystemdictionarytypeServiceImpl extends BaseServiceImpl<Systemdictionarytype> implements ISystemdictionarytypeService {

    @Autowired
    private SystemdictionarytypeMapper systemdictionarytypeMapper;


    /**
     * 批量删除，接收一个long类型的数组
     * @param ids
     */
    @Override
    @Transactional
    public void batchDelete(Long[] ids) {
        systemdictionarytypeMapper.batchDelete(ids);
    }

    @Override
    public List<Systemdictionarytype> findDictionTree() {
        return systemdictionarytypeMapper.findDictionTree();
    }
}
